#ifndef CTABLELIMITS_H
#define CTABLELIMITS_H

#include "lib.h"

class CTableLimits
{
	public:

		// constructors
		CTableLimits();
		CTableLimits(int32 minPassSet, int32 maxPassSet, int32 minOddsSet, int32 maxOddsSet,
					 int32 minPlaceSet, int32 maxPlaceSet, int32 minHardPropsSet, int32 maxHardPropsSet,
					 int32 minFieldBigSet, int32 maxFieldBigSet, int32 minTable, int32 maxTable,
					 int32 betOdds, int32 field12Odds, int32 compFactor);
		~CTableLimits();
		
		// modifiers
		void	set(int32 minPassSet, int32 maxPassSet, int32 minOddsSet, int32 maxOddsSet,
					int32 minPlaceSet, int32 maxPlaceSet, int32 minHardPropsSet, int32 maxHardPropsSet,
					int32 minFieldBigSet, int32 maxFieldBigSet, int32 minTable, int32 maxTable,
					int32 betOdds, int32 field12Odds, int32 compFactor);

		void	initialize();

		// accessors
		int32	getBetMin(uint8 betid);
		int32	getBetMax(uint8 betid);

		// operators
		bool8			operator == (const CTableLimits &limits);
		CTableLimits &	operator =  (const CTableLimits &limits);

	public:

		int32	m_minPassSet;
		int32	m_maxPassSet;
		int32	m_minOddsSet;
		int32	m_maxOddsSet;
		int32	m_minPlaceSet;
		int32	m_maxPlaceSet;
		int32	m_minHardPropsSet;
		int32	m_maxHardPropsSet;
		int32	m_minFieldBigSet;
		int32	m_maxFieldBigSet;
		
		int32	m_minTable;
		int32	m_maxTable;
		int32	m_betOdds;		// 10x actual odds
		int32	m_field12Odds;
		int32	m_compFactor;

        int32   m_nLargestBet;  // kharmon.  01-03-06.  #7916.  The largest single bet value allowed by table limit settings.
		
};

#endif
